﻿<?xml version="1.0" encoding="UTF-8"?> 
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html>
<head>
<title>Handmemo</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.css" />
<script src="http://code.jquery.com/jquery-1.5.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.js"></script>
</head>
<body>
	<div id="wrapper">
	<div data-role="page">
		<div data-role="header">
			<h1>Handmemo</h1>
		</div>
		<div data-role="content">
			{% if handmemo %}
					<form id="updateform" action="/update" method="post">
						<textarea class="memo" name="memo">{{ handmemo.memo|escape }}</textarea>
						<br />
						<input class="key" type="hidden" name="key" value="{{ handmemo.key|escape }}">
						<input class="updatebutton" type="submit" value="Update">
					</form>
					<form class="deleteform" action="/delete" method="post">
						<input class="key" type="hidden" name="key" value="{{ handmemo.key|escape }}">
						<input class="deletebutton" type="submit" value="Delete">
					</form>

			{% endif %}
		</div>
	<div data-role="footer">
		<p>{{ user|escape }} <a href="{{ logout }}">Logout</a></p>
		<p>© 2011 Handmemo</p>
	</div>
	</div>
	</div>
</body>
</html>